/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javatest1;

/**
 *
 * @author paul
 */
public class RoboTask {
    double baseTime = System.currentTimeMillis() / 1000.0;
    double taskTime = 0;
    boolean active = false;
    public static RoboRobot robot = null;

    void start(){
        baseTime = System.currentTimeMillis() / 1000.0;
        taskTime = 0;
        active = true;
    }
    void stop(){
        active = false;
    }
    void handle(){
        taskTime = System.currentTimeMillis() / 1000.0 - baseTime;
    }

    double getTaskTime(){
        return taskTime;
    }
}
